<?php

namespace app\common\event\fp\post;

use app\common\model\fp\PostMedia;
use app\job\queue\PostAuditJob;
use think\facade\Log;
use think\facade\Queue;

class PostAuditSendQueue
{
    //队列名称
    protected string $queue = "PostAuditJob";

    public function handle($postAudit)
    {
        config('app.env') != 'prod' && Log::channel('my')->info('[ PostAudit ] ' . json_encode($postAudit));

        Queue::push(PostAuditJob::class, $postAudit,  $this->queue);
    }
}